// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * 固资测算其他一次性支出枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024-09-25
 */
public enum InvestmentExpensesEnum {
    WORKING(1, "Working prototype"),
    OFFICIAL(2, "Official prototype"),
    TRIAL(3, "Trial production"),
    STANDARD(4, "Standard certification"),
    TRAVEL(5, "Travel and administration fee"),
    CONSULTING(6, "Consulting fee"),
    RAPID(7, "Rapid prototyping parts fee"),
    CERTIFICATION(8, "3C certification fee"),
    SALARY(9, "R&D Salary"),
    TOTAL(10, "R&D Expense Total"),
    OTHER(11, "R&D Expense-其他");

    private int value;

    private String name;

    InvestmentExpensesEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        InvestmentExpensesEnum[] arrObj = InvestmentExpensesEnum.values();
        for (InvestmentExpensesEnum obj : arrObj) {
            if (value ==  obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }

}
